package com.alorm.core.sqlite;

import java.io.Serializable;
import java.util.List;

import android.content.Context;

import com.alorm.AlormTemplate;
import com.alorm.core.exceptions.AlormException;
import com.alorm.utils.AlormConfiguration;

public class AlormSQLiteTemplate extends AlormSQLiteEntityManager implements
		AlormTemplate {

	public AlormSQLiteTemplate(Context context, AlormConfiguration conf) {
		super(context, conf);
	}

	public void save(Object pEntity) throws AlormException {

		Serializable id = null;
		openDataBase();
		save(pEntity);
		closeDataBase();
	}

	public void delete(Object pEntity) throws AlormException {

		openDataBase();
		delete(pEntity);
		closeDataBase();
	}

	public void update(Object pEntity) throws AlormException {

		openDataBase();
		update(pEntity);
		closeDataBase();

	}

	public Object get(Class pClass, Serializable id) throws AlormException {
		// TODO Auto-generated method stub
		return null;
	}

	public List<Object> executeSql(String sql) throws AlormException {
		// TODO Auto-generated method stub
		return null;
	}

}
